package com.ruoyi.dynamic.domain;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.ruoyi.common.annotation.Excel;
import lombok.EqualsAndHashCode;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
/**
 * 用户发布动态对象 t_user_dynamic
 * 
 * @author DEREK
 * @date 2023-05-12
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("t_user_dynamic")
public class UserDynamic
{

    /** 主键id */
	@TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 动态标题 */
    @Excel(name = "动态标题")
    private String title;

    /** 动态图片多个用逗号分开 */
    @Excel(name = "动态图片多个用逗号分开")
    private String img;

    /** 类型 1:图片 2：视频3：文字 */
    @Excel(name = "类型 1:图片 2：视频3：文字")
    private Integer type;

    /** 0:有效 1：无效2:用户自主删除(或者平台检测不通过) */
    @Excel(name = "0:有效 1：无效2:用户自主删除(或者平台检测不通过)")
    private Integer status;
    
    private String voice;
    private String lable;
    private Integer isVisible; // 谁可见 1=所有人 2=仅限会员
    private String begTime;
    private String endTime;
    private String serviceTime;
    private String remark;
    private Integer likeCount;
    private Integer commentCount;
    private Integer giftCount;
    private Integer shareCount;
    private Integer enrollCount;
    private BigDecimal amount;// 活动单价
    private Integer executeStatus; // 执行状态 0=待执行 1=已执行开始 2=已执行结束

    /** 驳回原因 */
    @Excel(name = "驳回原因")
    private String rejected;
    
    private Integer isAutomatic;

    /** 操作人 */
    @Excel(name = "操作人")
    private String adoptUser;
    private Date createTime;
    private Integer dynamicType; // 动态类型 1=动态 2=活动
    private Integer isTop;
    private Integer sort;
    private Integer regular; // 定时刷新 0=无 1=24小时 2=48小时
    @TableField(exist = false)
    private String nickName;

    @TableField(exist = false)
   	private List<String> simpleSpectrum1;
    @TableField(exist = false)
    private Long dynamicId;
    
    @TableField(exist = false)
    private List<UserDynamicTime> dynamicTime = new ArrayList<UserDynamicTime>();
}
